package queuedemo;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;

/**
 * @Author 12629
 * @Description：
 */
public class Test {
    public static void main(String[] args) {
        Deque<Integer> deque = new LinkedList<>();
        deque.offerFirst(1);
        deque.offerFirst(2);

        System.out.println(deque.pollLast());


        Deque<Integer> deque2 = new ArrayDeque<>();


    }
    public static void mai1n(String[] args) {
        MyQueue queue = new MyQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        System.out.println(queue.poll());//1
        System.out.println(queue.peek());//2
        System.out.println(queue.peek());//2
    }
}
